///* 
// * File:   testCalcula.cpp
// * Author: guilhermemg
// *
// * Created on 05/12/2011, 16:40:55
// */
//
//#include <stdlib.h>
//#include <iostream>
//#include "AveragePixelIntensity.h"
//#include <cv.h>
//#include <highgui.h>
//
///*
// * Simple C++ Test Suite
// */
//
//void testCalcula() {
//    IplImage* white;
//    IplImage* black;
//    
//    white = cvLoadImage("/home/guilhermemg/Desktop/Imagens e Videos de Testes/whiteImage.png");    
//    black = cvLoadImage("/home/guilhermemg/Desktop/Imagens e Videos de Testes/blackImage.png");
//    
//    AveragePixelIntensity averagePixelIntensity;
//    
//    int resultWhite = averagePixelIntensity.calcula(white);
//    int resultBlack = averagePixelIntensity.calcula(black);
//    resultWhite = 255;
//    resultBlack = 0;
//    
//    if (averagePixelIntensity.calcula(white) != 255 ||
//            averagePixelIntensity.calcula(black) != 0) {
//        std::cout << "%TEST_FAILED% time=0 testname=testCalcula (testCalcula) message=error message sample" << std::endl;
//    }
//}
//
//int main(int argc, char** argv) {
//    std::cout << "%SUITE_STARTING% testCalcula" << std::endl;
//    std::cout << "%SUITE_STARTED%" << std::endl;
//
//    std::cout << "%TEST_STARTED% testCalcula (testCalcula)" << std::endl;
//    testCalcula();
//    std::cout << "%TEST_FINISHED% time=0 testCalcula (testCalcula)" << std::endl;
//
//    std::cout << "%SUITE_FINISHED% time=0" << std::endl;
//
//    return (EXIT_SUCCESS);
//}
//
